<?php
// remove leading and trailing whitespace
// output: 'a b   c'
$str = '  "Hello World"   ';
var_dump($str);
$str1 =  trim($str,' "');
var_dump(str_replace(" ","",$str1));
var_dump($str1);

